home *** CD-ROM | disk | FTP | other *** search
- // LF2 Engine
- // (C) 2002-3 7FX
- //---------------------------------------------------------------------------
- // Desc
- string desc : Description = "Image shader, ktery meni zobrazeni na negativni.";
- // Shader type phase
- string type : Type = "image";
- //---------------------------------------------------------------------------
- // Render target texture
- texture RT : RenderTargetFSMap;
- //---------------------------------------------------------------------------
- sampler sRT = sampler_state
- {
- Texture = <RT>;
- MinFilter = POINT;
- MagFilter = POINT;
- AddressU = CLAMP;
- AddressV = CLAMP;
- };
- //---------------------------------------------------------------------------
- // Pixel shader
- float4 PS(float2 uv: TEXCOORD0) : COLOR
- {
- return (1 - tex2D(sRT, uv));
- }
- //---------------------------------------------------------------------------
- // Technique with vertex and pixel shader
- technique vs11_ps11
- {
- pass p0
- {
- //CullMode = None;
- ZEnable = false;
- ZWriteEnable = false;
-
- PixelShader = compile ps_1_1 PS();
- }
- }
- //---------------------------------------------------------------------------